package club.lovety.service.user.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 这里写文档描述
 *
 * @author smc
 * @date 2018-08-03 14:19
 * @since
 */
@RestController
@RefreshScope
@RequestMapping("user/client")
public class UserClientController {

    @Value("${user.username}")
    private String username;

    @RequestMapping("getusername")
    public String getUsername(){
        return "分布式文件名称: "+ username;
    }


}
